package com.matt.controller.api.web;

import com.matt.foundation.model.StatusResponse;
import com.matt.service.BudgetTempleteService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2018/10/26
 * *******************************
 */
@RestController
@RequestMapping("/web/channel")
@Api(tags = "CRM - 渠道")
public class ChannelController {

    @Autowired
    private BudgetTempleteService budgetTempleteService;

    @RequestMapping(value = "/all")
    public StatusResponse findAll(String areaId) {
        return StatusResponse.success(budgetTempleteService.findAll(areaId));
    }
}
